home *** CD-ROM | disk | FTP | other *** search
/ MacWorld Secrets (4th Edition) / Mac Secrets CD 4th Ed.toast / Apple Advanced Technologies / Apple Speech Technologies 1.5 / PlainTalk Developer Info / Speech Recognition Manager SDK / SR Sample Code / Speakable Items Example / Sources / Process & Finder Stuff / AppleEventUtils.h < prev    next >
Text File  |  1993-11-26  |  865b  |  29 lines

  1. /* AppleEventUtils.h
  2.  *------------------------------------------------------------*
  3.  *    AppleEvent-related utility routines
  4.  */
  5.  
  6. #include "Processes.h"
  7. #include "AppleEvents.h"
  8.  
  9.  
  10. /* GetProcessLocation uses PPCBrowser to allow the user to specify where a 
  11.  *    process is running.  The given prompt will be shown at the top of the
  12.  *    PPCBrowser dialog.
  13.  */
  14. OSErr GetProcessLocation(StringPtr prompt, 
  15.                         LocationNameRec *theLocation, 
  16.                         PortInfoRec *thePortInfo);
  17.  
  18.  
  19. /* SendAppleEvent1Param sends an apple event with the given class and ID to the given location.
  20.  *    The direct parameter is set to the given data before sending.
  21.  */
  22. OSErr SendAppleEvent1Param(LocationNameRec    *theLocation, 
  23.                             PortInfoRec        *thePortInfo, 
  24.                             AEEventClass    eventClass,
  25.                             AEEventID        eventID,
  26.                             DescType        dataType, 
  27.                             void            *dataPtr, 
  28.                             Size            dataSize);
  29.